<?php


namespace app\zhongcan\model;

use think\Model;

class IndexModel extends Model
{
    protected $name = 'navigate';
    public function child(){
        return $this->hasMany(IndexModel::class,'parent_id','id');
    }
}